package com.common.util;

import org.apache.commons.lang.builder.ToStringBuilder;

public class Result {

	private int reCode = 0;

	private Object reObj = null;

	public Result() {

	}

	public Result(int reCode) {
		this.reCode = reCode;
	}

	public Result(Object reObj) {
		this.reObj = reObj;
	}

	public Result(int reCode, Object reObj) {
		this.reCode = reCode;
		this.reObj = reObj;
	}

	public int getReCode() {
		return reCode;
	}

	public void setReCode(int reCode) {
		this.reCode = reCode;
	}

	public Object getReObj() {
		return reObj;
	}

	public void setReObj(Object reObj) {
		this.reObj = reObj;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
